//#define __DEBUG__
// by Xeno
#define THIS_FILE "fn_closespectcontrols.sqf"
#include "xr_macros.sqf"

disableSerialization;
private ["_ctrl", "_disp"];
_disp = uiNamespace getVariable ["XR_SpectDlg", displayNull];
if (!isNull _disp) then {
	_ctrl = _disp displayCtrl 1001;
	if (ctrlShown _ctrl) then {ctrlShow [1001, false]};
	_ctrl = _disp displayCtrl 1000;
	if (ctrlShown _ctrl) then {ctrlShow [1000, false]};
};